package cn.piesat.scanning.business.xz.service.impl;

import cn.piesat.scanning.business.xz.service.BuildAlgorithmTaskService;
import cn.piesat.scanning.business.xz.single.AlgorithmTaskPathParam;
import cn.piesat.scanning.business.xz.single.AlgorithmTaskRuleParam;
import cn.piesat.scanning.dto.HtScanningMetadataDTO;
import cn.piesat.scanning.service.HtScanningMetadataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Ming
 * @version 1.0
 * @description: TODO
 * @date 2023/12/18 13:48
 */
@Service
public class BuildWATER_CHANGEServiceImpl implements BuildAlgorithmTaskService {
    @Autowired
    private HtScanningMetadataService htScanningMetadataService;
    @Override
    public Map<String, Object> initAlgorithmParams(String adsType, String primaryFile, String filePath, AlgorithmTaskRuleParam taskRuleParam,
                                                   AlgorithmTaskPathParam taskPathParam, Map<String, Integer> indexParams, String fileDate,
                                                   String scanningPath,HtScanningMetadataDTO htScanningMetadataDTO) {
        Map<String, Object> algorithmParams = new HashMap<>();
        Map<String, Object> params = new HashMap<>();
        params.put("primaryFile", primaryFile);
        params.put("backgroundImg", "/mnt/sfs/tmp/wdq/output/GF1/WFV1/L3/LMCI/MOAY/16M/2023/20230711/LKR_LMCI_ZRMN_L3_GF1_WFV1_16M_GLL_MOAY_20230711123709_20230711123709.TIFF");
        params.put("auxPath", taskPathParam.getParameter03());
        params.put("regionId", "ZRNM");
        params.put("regionName", "");
        algorithmParams.put("parameter00", adsType);
        algorithmParams.put("parameter01", params);
        return algorithmParams;
    }
}
